from flask import make_response, redirect, jsonify

import app


@app.route('/custom-response')
def custom_response():
    response = make_response('Custom Response')
    response.headers['X-Custom-Header'] = 'Value'
    response.status_code = 201
    return response

@app.route('/redirect')
def redirect_example():
    return redirect('/')

@app.route('/json')
def json_example():
    return jsonify({'name': 'Alice', 'email': 'alice@example.com'})